package com.yunfei.enums;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum GuDingShouYiCalResultStatus {
    SUCCESS(0, "成功"),
    buyAmt(101, "buyAmt不能为空"),
    daysCnt(102, "daysCnt不能为空"),
    rae(103, "rae不能为空"),
    depth_notnull(104, "depth不能为空"),
    depth_error(105, "depth不正确"),
    name_notnull(106, "name不能为空"),
    name_parent_city_notnull(107, "上级节点省份名称不能为空"),
    name_parent_area_notnull(108, "上级节点地区名称不能为空"),
    ;
    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    GuDingShouYiCalResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
